// Map

const obj = {}
obj[true] = 123
obj[123] = 123
obj[{a: 1}] = 123

const map = new Map()
map.set(true, 132)
map.set(123, 132)
const a = {a: 1}
map.set(a, 132)

console.log(map)
console.log(map.get(a))